package cn.huiyunche.bms.backend.service;

import cn.huiyunche.bms.backend.bo.AuditBO;
import cn.huiyunche.bms.backend.query.BmsReceiptAuditConditions;
import cn.huiyunche.bms.backend.query.ReceiptAduitWithOrderConditions;
import cn.huiyunche.commons.domain.PageVo;

import java.util.Map;

/**
 * Created by Fleix on 2017/8/15.
 */
public interface AuditService {

    /**
     * 提交审核
     * @param conditions
     * @return
     */
    Integer submitData(BmsReceiptAuditConditions conditions) throws Exception;

    /**
     * 审核完调用销售端接口
     * @param salesOrderCode
     * @param status
     * @return
     * @throws Exception
     */
    Integer callSales(String salesOrderCode, String status) throws Exception;

    /**
     * 根据条件查询列表
     * @param pageVo
     * @param conditions
     * @return
     * @throws Exception
     */
    Map<String, Object> selectReceiptAuditByConditions(PageVo pageVo, ReceiptAduitWithOrderConditions conditions) throws Exception;

    AuditBO detail(AuditBO bo) throws Exception;

    Integer updateStatus(ReceiptAduitWithOrderConditions conditions) throws Exception;
}
